package com.trade.okxserver.res;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class RealKlineRes {


    @JsonProperty("success")
    private Boolean success = Boolean.TRUE;
    @JsonProperty("data")
    private DataDTO data;

    @NoArgsConstructor
    @Data
    public static class DataDTO {
        @JsonProperty("lines")
        private List<List<Double>> lines;
        @JsonProperty("depths")
        private DepthsDTO depths;

        @NoArgsConstructor
        @Data
        public static class DepthsDTO {
            @JsonProperty("asks")
            private List<List<Double>> asks;
            @JsonProperty("bids")
            private List<List<Double>> bids;
        }
    }
}
